home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Apple / Apple II TNs(Text).cpt / Apple II TNs(Text) / ATLK / TN.ATLK.003 / TN.ATLK.003
Encoding:
Text File  |  1989-11-15  |  2.9 KB  |  58 lines  |  [TEXT/pdos]

  1. Apple II
  2. Technical Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6.  
  7. AppleTalk
  8. #3:    Avoiding Remote Printer Time-Outs
  9.  
  10. Revised by:    Jim Luther                                      September 1989
  11. Written by:    Jim Luther                                            May 1989
  12.  
  13. This Technical Note discusses how to avoid time-outs when printing to remote 
  14. printers.
  15. Changes since May 1989:  Updated to reflect System Software 5.0 changes 
  16. and to clarify the results of changing the time-out interval.
  17. _____________________________________________________________________________
  18.  
  19. The Apple II AppleTalk firmware's Remote Print Manager (RPM), which supports 
  20. AppleTalk's Super Serial Card (SSC) entry points, maintains a time-out 
  21. interval value.  The time-out interval is usually set to 30 seconds.  When an 
  22. application quits writing to the AppleTalk firmware, the RPM waits this time 
  23. interval before sending the last block of data to the printer and closing the 
  24. Printer Access Protocol (PAP) connection.
  25.  
  26. What does this mean?  If an application waits longer than the time-out 
  27. interval (e.g., 30 seconds) between any write accesses to the AppleTalk 
  28. firmware (i.e., a pause between initialization and printing or a pause during 
  29. printing), the PAP connection closes, the current page may be ejected from the 
  30. printer (this is printer dependent--the ImageWriter II and ImageWriter LQ do 
  31. not automatically eject the page, the Apple LaserWriter does), and the rest of 
  32. the application's output to the printer is lost.  If you initialize the 
  33. AppleTalk SSC firmware, you must print immediately or a time-out may occur and 
  34. reinitialization is necessary to print again.  Applications should not 
  35. initialize the firmware and expect it still to be initialized at a later point 
  36. in time.
  37.  
  38.  
  39. What You Can Do
  40.  
  41. The RPM's PMSetPrinter call may be used to change the time-out interval to a 
  42. different value.  However, the time-out interval should be kept as short as 
  43. possible because other users cannot open another PAP connection with the 
  44. printer until your machine has timed-out.  In other words, if you set the 
  45. time-out interval for five minutes, the RPM keeps the PAP connection open with 
  46. the printer for five minutes after the last character is written to the RPM, 
  47. thus blocking other machines from using that printer for five extra minutes; 
  48. this delay is unacceptable in a shared printer environment.
  49.  
  50. With an Apple IIGS using System Software 5.0, the RPM's PMSetPrinter call may 
  51. be used to set the time-out interval to zero.  When the time-out interval is 
  52. set to zero, the session never times out and must be closed with the Apple 
  53. IIGS-specific PMCloseSession RPM call.
  54.  
  55.  
  56. Further Reference
  57. _____________________________________________________________________________
  58.   o  AppleShare Programmer's Guide for the Apple IIGS